-
Couldn't load subscription status.
- Fork 174
Expect only first parameter as List in Batched #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the PR - would you mind adding a test that ensures this won't break in the future? |
|
|
||
| if(realType is ParameterizedType && isListType(realType, potentialMatch)) { | ||
| return potentialMatch.copy(javaType = realType.actualTypeArguments.first(), batched = false) | ||
| if (potentialMatch.location.ordinal > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is checking the enum ordinal, not the method parameter position.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this to compare with enum
|
Added test to check batched method with parameters |
|
Just faced the same issue this PR fixes, any rough ETA on Maven Central? |
|
Any updates? |
|
Thanks for merging @apottere! |
Only first argument should be List (this fixes #93)